<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>book</title>
</head>
<body>
  <table>
    <thead>
      <td>ID</td>
      <td>书名</td>
      <td>数量</td>
      <td>描述</td>
    </thead>
    <tbody>
      <% for( let i = 0; i < result.length; i++ ) { %>
      <tr>
        <td><%= result[i].id %></td>
        <td><%= result[i].bookName %></td>
        <td><%= result[i].bookCounts %></td>
        <td><%= result[i].detail %></td>
      </tr>
      <% } %>
    </tbody>
  </table>
</body>
</html>